// pcFe相关
import type { pageRoutesType } from '@model/types/PageRoutes'

// 信息公告
export const pageInfoNotice: pageRoutesType = {
  id: 'M_INFO_NOTICE',
  type: 'infoNotice',
  url: '/info/notice',
  title: '信息公告列表'
}

// 工单详情
export const pageTaskView: pageRoutesType = {
  id: 'task_view',
  type: 'taskView',
  url: '/task/view',
  title: '工单详情',
  idParams: true,
  urlParams: true,
  // titleParams: false, // 页面详情内会通过接口设置标题
}

// 事件详情
export const pageEventView: pageRoutesType = {
  id: 'event_view',
  type: 'eventView',
  url: '/event/view',
  title: '事件详情',
  idParams: true,
  urlParams: true,
  // titleParams: false, // 页面详情内会通过接口设置标题
}

// 会话详情
export const pageImView: pageRoutesType = {
  id: 'im_view',
  type: 'imView',
  url: '/im/imDetail',
  title: '会话详情',
  idParams: true,
  titleParams: true,
}

// 用户详情
export const pageSecurityUserView: pageRoutesType = {
  id: 'security_user_view',
  type: 'securityUserView',
  url: '/security/user/view',
  title: '用户详情',
  idParams: true,
  urlParams: true,
}
// 成员详情
export const pageTabTeamView: pageRoutesType = {
  id: 'tab_team_view',
  type: 'tabTeamView',
  title: '成员详情',
  url: '/security/user/view',
  idParams: true,
  urlParams: true
}
// 客户详情
export const pageCustomerView: pageRoutesType = {
  id: 'customer_view',
  type: 'customerView',
  url: '/customer/view',
  title: '客户详情',
  idParams: true,
  urlParams: true,
}

// 编辑计划任务
export const pagePlanTaskEdit: pageRoutesType = {
  id: 'task_edit',
  type: 'planTaskEdit',
  url: '/task/planTask/edit',
  title: '编辑计划任务',
  idParams: true,
}

// 复制计划任务
export const pagePlanTaskCopy: pageRoutesType = {
  id: 'task_copy',
  type: 'planTaskCopy',
  url: '/task/planTask/copy',
  title: '复制计划任务',
  idParams: true,
}

// 计划任务详情
export const pagePlanTaskView: pageRoutesType = {
  id: 'plantask_view',
  type: 'planTaskView',
  url: '/task/planTask/view',
  title: '计划任务详情',
  idParams: true,
  urlParams: true,
}

// 新建/编辑工单
export const pageCreateTask: pageRoutesType = {
  id: 'createTask',
  type: 'createTask',
  url: '/task/edit',
  title: '',
  urlParams: true,
  titleParams: true,
}

// 备件清单 | 服务清单
export const pageTaskSparepartSetting: pageRoutesType = {
  id: 'task_sparepart_setting',
  type: 'taskSparepartSetting',
  url: '/setting/task/cardSpareService',
  title: '',
  titleParams: true,
}

// 附加组件表单设置（工单附加组件）
export const pageTaskCardSetting: pageRoutesType = {
  id: 'task_card_setting',
  type: 'taskCardSetting',
  url: '/setting/task/cardFormfields',
  title: '附加组件表单设置',
  idParams: true
}

// Bom详情
export const pageItrBomView: pageRoutesType = {
  id: 'itrBom_view',
  type: 'itrBomView',
  url: '/partV2/category/itrBom',
  title: 'Bom详情',
  idParams: true
}

// 产品详情
export const pageProductView: pageRoutesType = {
  id: 'product_view',
  type: 'productView',
  url: '/customer/product/view',
  title: '产品详情',
  idParams: true,
  urlParams: true,
}

// 备件品类详情
export const pagePartCategoryDetail: pageRoutesType = {
  id: 'partV2_category_detail',
  type: 'partCategoryDetail',
  url: '/partV2/category/detail',
  title: '备件品类详情',
  idParams: true,
}

// 服务项目详情
export const pageServicePriceDetailView: pageRoutesType = {
  id: 'servicePriceDetailView',
  type: 'servicePriceDetailView',
  url: '/service/price/view',
  title: '服务项目详情',
  idParams: true,
  urlParams: true
}

// 服务报告详情
export const pagePerformanceReport: pageRoutesType = {
  id: 'performance_report',
  type: 'performanceReport',
  url: '/performance/v2/report/desc',
  title: '报告详情列表',
  idParams: true,
  urlParams: true,
  titleParams: false
}

// 绩效报告详情 已修改为 pagePerformanceReport
// export const pagePerformanceReposrt: pageRoutesType = {
//   id: 'performance_reposrt',
//   type: 'performanceReposrt',
//   url: '/performance/v2/report/desc',
//   title: '绩效报告详情',
//   idParams: true,
//   urlParams: true,
// }

// 知识库详情
export const pageWikiDetail: pageRoutesType = {
  id: 'document_detail',
  type: 'wikiDetail',
  url: '/wiki/detail/page',
  title: '知识库详情',
  idParams: true
}

// 知识库新建
export const pageWikiCreate: pageRoutesType = {
  id: 'wiki_create',
  type: 'wikiCreatePage',
  url: '/wiki/create/page',
  title: '知识库新建',
  titleParams: true
}

// 知识库编辑
export const pageWikiEdit: pageRoutesType = {
  id: 'wiki_create',
  type: 'wikiEditPage',
  url: '/wiki/edit/page',
  title: '知识库编辑',
  idParams: true,
  titleParams: true
}

// 审批列表
export const pageApproveList: pageRoutesType = {
  id: 'M_APPROVE_LIST',
  type: 'approveList',
  url: '/approve',
  title: '审批列表',
}

// 日程管理
export const pageSchedule: pageRoutesType = {
  id: 'schedule',
  type: 'schedule',
  url: '/calendar',
  title: '日程管理',
  idParams: true,
  titleParams: false,
}

// 设置门户页面
export const pagePortal: pageRoutesType = {
  id: 'portal',
  type: 'portal',
  url: '/portal',
  title: '门户页面设置',
}

// 超级二维码设置页面
export const pageProductQrcodeSet: pageRoutesType = {
  id: 'PRODUCT_QRCODE_SET',
  type: 'productQrcodeSet',
  url: '/setting/productV2/catalog/setting',
  title: '超级二维码',
  // titleParams: true,
}

// 产品管理置页面
export const pageProductSet: pageRoutesType = {
  id: 'PRODUCT_SET',
  type: 'pageProductSet',
  url: '/setting/productV2/catalog/setting',
  title: '产品管理设置',
  // titleParams: true,
}

export const pageProductAdditionalManage: pageRoutesType = {
  id: 'PRODUCT_CUSTOMER_ADDITIONAL_SET',
  type: 'productAdditionalManage',
  url: '/shb/home/setting/productV2/catalog/setting',
  haveParams: 'type=customerAdditionalSet',
  title: '产品管理-附加组件设置'
}

// 客户管理设置
export const pageCustomerSet: pageRoutesType = {
  id: 'M_SYSTEM',
  type: 'customerSet',
  url: '/setting/customer/customerFunc',
  title: '客户管理设置'
}

// 客户管理-附加组件设置
export const pageCustomerAdditionalManage: pageRoutesType = {
  id: 'CUSTOMER_ADDITIONAL',
  type: 'customerAdditionalManage',
  url: '/setting/customer/additional',
  title: '客户管理-附加组件设置', 
}

// 团队详情 - 还是成员详情 - 部门详情  云仓相同的路由不同的名称TODO
export const pageTeamView: pageRoutesType = {
  id: 'team_view',
  type: 'teamView',
  title: '部门详情',
  url: '/security/tag/view',
  idParams: true,
  urlParams: true
}
// 工单
export const pageTaskAllot: pageRoutesType = {
  id: 'task_allot',
  type: 'pageTaskAllot',
  title: '指派工单',
  url: '/task/allotTask',
  idParams: true,
  titleParams: true
}
//  打开工单计划任务新编辑tab
export const pagePlanTaskCreate: pageRoutesType = {
  id: 'createPlan',
  type: 'planTaskCreate',
  title: '新建计划任务',
  url: '/task/planTask/create'
}
// 编辑产品类型
export const pageProductCatalogEdit: pageRoutesType = {
  id: 'product_catalog_edit',
  type: 'pageProductCatalogEdit',
  title: '编辑产品类型',
  url: '/productV2/catalog/edit',
  idParams: true,
  titleParams: true
}

// 新建产品类型
export const pageProductCatalogCreate: pageRoutesType = {
  id: 'product_catalog_create',
  type: 'productCatalogCreate',
  url: '/productV2/catalog/edit',
  title: '',
  idParams: true,
  titleParams: true
}

// 部门主页
export const pageDeptHome: pageRoutesType = {
  id: 'dept_home',
  type: 'deptHome',
  url: '/security/tag/home',
  title: '部门主页',
  urlParams: true,
}

// 新建部门或子部门
export const pageSecurityTagCreate: pageRoutesType = {
  id: 'team_create',
  type: 'securityTagCreate',
  url: '/security/tag/createTag',
  title: '添加子部门'
}

// 服务商主页
export const pageServiceProviderViewHome: pageRoutesType = {
  id: 'serviceProviderView_home',
  type: 'serviceProviderViewHome',
  url: '/security/tag/serviceProviderHome',
  title: '服务商主页',
  idParams: true,
  urlParams: true
}

// 短信消息设置
export const pageSettingSmsmessage: pageRoutesType = {
  id: 'smsmessage',
  type: 'smsmessage',
  url: '/setting/message/smsmessage',
  title: '短信消息设置',
}

export const pageSettingMessage: pageRoutesType = {
  id: 'MESSAGE_DD_MESSAGE_NEW',
  type: 'MESSAGE_DD_MESSAGE_NEW',
  url: '/setting/message',
  title: '消息设置',
}

export const pageSettingChannel: pageRoutesType = {
  id: 'MESSAGE_CHANNEL_MESSAGE',
  type: 'MESSAGE_CHANNEL_MESSAGE',
  url: '/setting/message/channel',
  title: '渠道设置',
  urlParams:true
}

// 工作信息维护 ？？？这个云仓没用的啊
export const pageSettingWorkTime: pageRoutesType = {
  id: 'settingWorkTime',
  type: 'settingWorkTime',
  url: '/setting/workTime',
  title: '工作信息维护',
}

// 服务资源详情
export const pageItrServerResources: pageRoutesType = {
  id: 'itrServerResources_view',
  type: 'itrServerResourcesView',
  url: '/itrServerResources/view',
  title: '服务资源详情',
  idParams: true,
}


// 项目详情
export const pageFeItrProjectView: pageRoutesType = {
  id: 'itrProject_view',
  type: 'itrProjectView',
  url: '/itrProject/view',
  title: '项目详情',
  idParams: true,
}

// Bom详情
export const pageCategoryItrBomView: pageRoutesType = {
  id: 'itrBom_view',
  type: 'itrBomView',
  url: '/partV2/category/itrBom/view',
  title: 'Bom详情',
  idParams: true,
}

// 产品类型详情
export const pageProductV2CatalogView: pageRoutesType = {
  id: 'productV2_catalog_view',
  type: 'productV2CatalogView',
  url: '/productV2/catalog/view',
  title: '产品类型详情',
  idParams: true,
}

// 产品管理设置
export const pageProductTypeSetting: pageRoutesType = {
  id: 'productType',
  type: 'productTypeSetting',
  url: '/setting/product/productType',
  title: '产品管理设置',
}

// 商城管理
export const pagePartShopSetting: pageRoutesType = {
  id: 'PORTAL_MALL',
  type: 'partShopSetting',
  url: '/setting/serviceStation/partShop',
  title: '商城管理',
}

// 事件类型设置
export const pageServiceStation: pageRoutesType = {
  id: 'EVENT_TYPE_SETTINGS',
  type: 'serviceStation',
  url: '/setting/serviceStation/eventType',
  title: '',
  titleParams: true
}

// 在线客服设置
export const pageImSetting: pageRoutesType = {
  id: 'ONLINE_CUSTOMER_SERVICE_SETTINGS',
  type: 'imSetting',
  url: '/pcModule/setting/imSetting',
  title: '在线客服设置',
}

// 新建事件
export const pageCreateEvent: pageRoutesType = {
  id: 'createEvent',
  type: 'createEvent',
  url: '/event/edit',
  title: '新建事件',
}

// 编辑事件
export const pageEditEvent: pageRoutesType = {
  id: 'eidtEvent',
  type: 'editEvent',
  url: '/event/edit',
  title: '编辑事件',
  urlParams: true,
}

// 编辑工单
export const pageEditTask: pageRoutesType = {
  id: 'eidtTask',
  type: 'eidtTask',
  url: '/task/edit',
  title: '编辑工单',
  urlParams: true,
}

// 新建工单(从呼叫中心)
export const pageCreateTaskFromCallCenter: pageRoutesType = {
  id: 'createTaskFromCallCenter',
  type: 'createTaskFromCallCenter',
  url: '/task/edit4CallCenter',
  title: '新建工单',
  urlParams: true,
}

// 新建事件(从呼叫中心)
export const pageCreateEventFromCallCenter: pageRoutesType = {
  id: 'createEventFromCallCenter',
  type: 'createEventFromCallCenter',
  url: '/event/edit4CallCenter',
  title: '新建事件',
  urlParams: true,
}

// 新建工单(从客户)
export const pageCreateTaskFromCustomer: pageRoutesType = {
  id: 'createTaskFromCustomer',
  type: 'createTaskFromCustomer',
  url: '/task/createFromCustomer',
  title: '新建工单',
  urlParams: true,
}

// 新建事件(从客户)
export const pageCreateEventFromCustomer: pageRoutesType = {
  id: 'createEventFromCustomer',
  type: 'createEventFromCustomer',
  url: '/event/createFromCustomer',
  title: '新建事件',
  urlParams: true,
}

// 通话详情
export const pageCallcenterView: pageRoutesType = {
  id: 'callcenter_view',
  type: 'callcenterView',
  url: '/setting/callcenter/view',
  title: '通话详情',
  idParams: true,
}

// 合同详情
export const pageContractView: pageRoutesType = {
  id: 'contract_view',
  type: 'contractView',
  url: '/contract/view',
  title: '合同详情',
  idParams: true,
  urlParams: true,
}

// 新建合同(编辑)
export const pageContractEdit: pageRoutesType = {
  id: 'contract_edit',
  type: 'contractEdit',
  url: '/contract/edit',
  title: '新建合同',
  urlParams: true,
}

// 新建合同
export const pageContractCreate: pageRoutesType = {
  id: 'contract_create',
  type: 'contractCreate',
  url: '/contract/create',
  title: '新建合同',
}

// 编辑合同
export const pageEditContract: pageRoutesType = {
  id: 'contract_edit',
  type: 'contractEdit',
  url: '/contract/edit',
  title: '编辑合同',
  idParams: true,
  urlParams: true,
}

// 新建活动
export const pageCreateActivity: pageRoutesType = {
  id: 'customer_experience_activity_research_create',
  type: 'createActivity',
  url: '/pcoperation/customerExperience/activityResearch/create',
  title: '新建活动',
}

// 新建客户
export const pageCreateCustomer: pageRoutesType = {
  id: 'customer_create',
  type: 'createCustomer',
  url: '/customer/create',
  title: '新建客户',
}

// 客户管理设置
export const pageCustomerManagement: pageRoutesType = {
  id: 'CUSTOMER_MANAGEMENT',
  type: 'settingCustomerFunc',
  url: '/pcoperation/setting/customer/customerFunc',
  title: '客户管理设置',
}

// 新建产品
export const pageCreateProduct: pageRoutesType = {
  id: 'customer_product_create',
  type: 'customerProductCreate',
  url: '/customer/product/create',
  title: '新建产品',
}

// 新建角色
export const pageCreateRole: pageRoutesType = {
  id: 'create_role',
  type: 'createRole',
  url: '/security/role/create',
  title: '新建角色',
}

// 编辑角色
export const pageEditRole: pageRoutesType = {
  id: 'edit_role',
  type: 'editRole',
  url: '/security/role/edit',
  title: '编辑角色',
  urlParams: true,
}

// 转交详情
export const pageJobtransferView: pageRoutesType = {
  id: 'M_JOBTRANSFER_DETAIL',
  type: 'jobtransferView',
  url: '/jobtransfer/view',
  title: '转交详情',
}

// 角色详情 已改至 pageSecurityRoleView
// export const pageRoleView: pageRoutesType = {
//   id: 'tab_role_view',
//   type: 'roleView',
//   url: '/security/role/view',
//   title: '',
//   idParams: true,
//   urlParams: true,
//   titleParams: true
// }

// 完善客户信息
export const pageSupplementCustomerInfo: pageRoutesType = {
  id: 'customer_edit1',
  type: 'supplementCustomerInfo',
  url: '/customer/supplementCustomerInfo',
  title: '完善客户信息',
}

// 新建工单(从产品)
export const pageCreateTaskFromProduct: pageRoutesType = {
  id: 'createTaskFromProduct',
  type: 'createTaskFromProduct',
  url: '/task/createFromProduct',
  title: '新建工单',
  urlParams: true,
}

// 新建事件(从产品)
export const pageCreateEventFromProduct: pageRoutesType = {
  id: 'createEventFromProduct',
  type: 'createEventFromProduct',
  url: '/event/createFromProduct',
  title: '新建事件',
  urlParams: true,
}

// 商品详情
export const pageGoodsDetail: pageRoutesType = {
  id: 'goods_detail',
  type: 'goodsDetail',
  url: '/linkc/goods/detail',
  title: '商品详情',
  idParams: true,
  titleParams: true,
}

// 编辑商品
export const pageGoodsEdit: pageRoutesType = {
  id: 'goods_edit',
  type: 'goodsEdit',
  url: '/linkc/goods/edit',
  title: '编辑商品',
  idParams: true,
}

// 商品预览
export const pageGoodsPreview: pageRoutesType = {
  id: 'goods_preview',
  type: 'goodsPreview',
  url: '/linkc/goods/preview',
  title: '商品预览',
  idParams: true,
}

// 订单详情
export const pageOrderDetail: pageRoutesType = {
  id: 'my_shop_order_detail',
  type: 'orderDetail',
  url: '/linkc/order/detail',
  title: '订单详情',
}

// 新版本订单详情
export const pageOrderDetailV2: pageRoutesType = {
  id: 'my_shop_order_detailV2',
  type: 'orderDetailV2',
  url: '/linkc/order/detailV2',
  title: '订单详情',
  idParams: true,
  // titleParams: true, // 页面详情内会通过接口设置标题
}

// 备件品类详情
export const pagePartCategory: pageRoutesType = {
  id: 'partV2_category_detail',
  type: 'partCategory',
  url: '/partV2/category/detail',
  title: '备件品类详情',
  idParams: true,
}

// 备件品类详情
export const pagePartV2Detail: pageRoutesType = {
  id: 'partV2_detail',
  type: 'partV2Detail',
  url: '/partV2/detail',
  title: '备件品类详情',
  idParams: true,
}

// 创建备件品类
export const pageCreatePartV2: pageRoutesType = {
  id: 'partV2_create',
  type: 'createPartV2',
  url: '/partV2/create',
  title: '创建备件品类',
}

// 仓库报表
export const pageStatsPart: pageRoutesType = {
  id: 'stats_part',
  type: 'statsPart',
  url: '/stats/sparepart/showStatistics',
  title: '仓库报表',
  idParams: true,
}

// 绩效报告
export const pagePerformanceV1Report: pageRoutesType = {
  id: 'u_performanceReport_report',
  type: 'performanceReport',
  url: '/performance/report',
  title: '绩效报告',
  idParams: true,
}

// 产品模板
export const pageProductTemplate: pageRoutesType = {
  id: 'product_template_view',
  type: 'productTemplate',
  url: '/product/detail',
  title: '产品模板',
  idParams: true,
  urlParams: true,
}

// 产品注册信息
export const pageProductRegisterDetail: pageRoutesType = {
  id: 'product_register_detail',
  type: 'productRegisterDetail',
  url: '/product/register/detail',
  title: '产品注册信息',
  idParams: true,
  urlParams: true,
}

// 新建产品注册
export const pageProductCreateRegister: pageRoutesType = {
  id: 'product_register_create',
  type: 'productCreateRegister',
  url: '/product/register/create',
  title: '新建产品注册',
}

// 保存至产品
export const pageCustomerProductRegisterCreate: pageRoutesType = {
  id: 'customer_product_register_create',
  type: 'customerProductRegisterCreate',
  url: '/customer/product/register/create',
  title: '保存至产品',
  urlParams: true,
}

// 保存至客户
export const pageCustomerRegisterCreate: pageRoutesType = {
  id: 'customer_register_create',
  type: 'customerRegisterCreate',
  url: '/customer/register/create',
  title: '保存至客户',
  urlParams: true,
}

// 编辑产品
export const pageCustomerProductRegisterEdit: pageRoutesType = {
  id: 'customer_product_register_edit',
  type: 'customerProductRegisterEdit',
  url: '/customer/product/register/edit',
  title: '编辑产品',
  urlParams: true,
}

// 编辑客户
export const pageCustomerRegisterEdit: pageRoutesType = {
  id: 'customer_register_edit',
  type: 'customerRegisterEdit',
  url: '/customer/register/edit',
  title: '编辑客户',
  urlParams: true,
}

// 新建产品模板
export const pageProductCreate: pageRoutesType = {
  id: 'product_create',
  type: 'productCreate',
  url: '/product/create',
  title: '新建产品模板',
}

// 产品类型表单设置
export const pageProductField: pageRoutesType = {
  id: 'product_field',
  type: 'productField',
  url: '/setting/productV2/catalog/settingField',
  title: '产品类型表单设置',
}



// 超级二维码行为分析
export const pageProductBhAnalysis: pageRoutesType = {
  id: 'product_bhAnalysis',
  type: 'productBhAnalysis',
  url: '/product/bhAnalysis',
  title: '超级二维码行为分析',
  idParams: true,
}

// 信息公告详情
export const pageNoticeDetail: pageRoutesType = {
  id: 'bulletin_detail',
  type: 'noticeDetail',
  url: '/info/notice/detail/page',
  title: '信息公告详情',
  idParams: true,
}

// 信息公告新建
export const pageBulletinCreate: pageRoutesType = {
  id: 'bulletin_create',
  type: 'bulletinCreate',
  url: '/info/notice/create/page',
  title: '信息公告新建',
}

// 新建服务项目
export const pageServicePriceCreateView: pageRoutesType = {
  id: 'servicePriceCreateView',
  type: 'servicePriceCreateView',
  url: '/service/price/createView/0',
  title: '新建服务项目',
}

// 编辑服务项目
export const pageServicePriceView: pageRoutesType = {
  id: 'servicePriceView',
  type: 'servicePriceView',
  url: '/service/price/edit',
  title: '编辑服务项目',
  idParams: true,
  urlParams: true,
}

// 部门主页
export const pageServiceHome: pageRoutesType = {
  id: 'service_home',
  type: 'serviceHome',
  url: '/security/tag/serviceProviderHome',
  title: '部门主页',
  urlParams: true,
}


// 合同管理设置
export const pageContractManage: pageRoutesType = {
  id: 'contractManage',
  type: 'contractManage',
  url: '/setting/contract/manage',
  title: '合同管理设置',
}

// 附加组件表单设置
export const pageCustomerAdditionalFormSet: pageRoutesType = {
  id: 'customer_card_setting',
  type: 'customerCardSetting',
  url: '/setting/customer/cardFormfields',
  title: '附加组件表单设置',
}

// 产品二维码管理
export const pageProductQrcode: pageRoutesType = {
  id: 'productQrcode',
  type: 'productQrcode',
  url: '/product/qrcode',
  title: '产品二维码管理'
}

// 产品二维码管理
export const pageSettingSuperQrcode: pageRoutesType = {
  id: 'superqrcodeSet',
  type: 'settingSuperQrcode',
  url: '/setting/superQrcode',
  title: '产品二维码管理'
}

// 自助门户设置
export const pageSettingDoMyself: pageRoutesType = {
  id: 'doMyselfSet',
  type: 'settingDoMyself',
  url: '/setting/doMyself/wxSet',
  title: '自助门户设置'
}

// 附加组件设置
export const pageServiceStationCardManage: pageRoutesType = {
  id: 'ADD_ON_SETTINGS',
  type: 'serviceStationCardManage',
  url: '/setting/serviceStation/cardManage',
  title: '附加组件设置'
}

// 事件流程设置
export const pageEventFlowSetting: pageRoutesType = {
  id: 'service_event_flow_setting',
  type: 'eventFlowSetting',
  url: '/setting/serviceStation/eventForm',
  title: '编辑服务事件类型',
}

// 附加组件表单设置
export const pageEventCardSetting: pageRoutesType = {
  id: 'event_card_setting',
  type: 'eventCardSetting',
  url: '/setting/serviceStation/card/view',
  title: '附加组件表单设置'
}

// 工单流程设置
export const pageTaskFlowSetting: pageRoutesType = {
  id: 'task_flow_setting',
  type: 'taskFlowSetting',
  url: '/setting/task/taskFormSet',
  title: '编辑工单类型',
}

// 附加组件设置
export const pageTaskCardhoursSetting: pageRoutesType = {
  id: 'task_cardhours_setting',
  type: 'taskCardhoursSetting',
  url: '/setting/task/cardHoursRecord',
  title: '附加组件设置'
}

// 物料申领设置
export const pageCardMaterialApplyService: pageRoutesType = {
  id: 'task_cardhours_setting',
  type: 'cardMaterialApplyService',
  url: '/setting/task/cardMaterialApplyService',
  title: '物料申领设置'
}

// 附加组件设置
export const pageTaskCardManage: pageRoutesType = {
  id: 'TASK_CARD_MANAGE',
  type: 'taskCardManage',
  url: '/setting/task/cardManage',
  title: '附加组件设置'
}

// 工单类型设置
export const pageTaskTypeManage: pageRoutesType = {
  id: 'TASK_TASK_SET',
  type: 'taskTypeManage',
  url: '/setting/taskType/manage',
  title: '工单类型设置',
}

// 产品设置
export const pageSettingProduct: pageRoutesType = {
  id: 'setting_product',
  type: 'settingProduct',
  url: '/setting/product/fields',
  title: '产品设置',
}

// 产品注册设置
export const pageSettingProductRegister: pageRoutesType = {
  id: 'setting_product_register',
  type: 'settingProductRegister',
  url: '/setting/product/register/fields',
  title: '产品注册设置',
}

// 自助门户设置
export const pageDoMyselfSet: pageRoutesType = {
  id: 'BASIC_SETTINGS',
  type: 'doMyselfSet',
  url: '/setting/doMyself/doMyselfSet',
  title: '自助门户设置',
}
// 人员财务信息新建
export const pageStaffPersonFinanceReportCreate: pageRoutesType = {
  id: 'user_create',
  type: 'staffPersonFinanceReportCreate',
  url: '/stats/staff/personFinanceReport',
  title: '人员财务信息'
}

// 人员财务信息编辑
export const pageStaffPersonFinanceReportEdit: pageRoutesType = {
  id: 'user_update',
  type: 'staffPersonFinanceReportEdit',
  url: '/stats/staff/personFinanceReport',
  title: '人员财务信息',
  idParams: true
}

// MTBT
export const pageStatsBusiness: pageRoutesType = {
  id: 'stats_business',
  type: 'statsBusiness',
  url: '/stats/business',
  title: 'MTBT'
}

// 服务商管理
export const pageServiceManage: pageRoutesType = {
  id: 'M_SERVICE_MANAGEMENT_APP_NEW',
  type: 'serviceManage',
  url: '/ServiceManage',
  title: '服务商管理'
}

// 服务商新建
export const pageServiceProviderCreate: pageRoutesType = {
  id: 'service_provider_create',
  type: 'serviceProviderCreate',
  url: '/service/manage/provider/create',
  title: '服务商新建'
}

// 编辑服务商
export const pageServiceProviderEdit: pageRoutesType = {
  id: 'service_provider_edit',
  type: 'serviceProviderEdit',
  url: '/service/manage/provider/edit',
  title: '编辑服务商',
  idParams: true
}

// 服务商详情
export const pageServiceProviderDetail: pageRoutesType = {
  id: 'service_provider_detail',
  type: 'serviceProviderDetail',
  url: '/service/manage/provider/detail',
  title: '服务商详情',
  idParams: true
}

// 工程师新建
export const pageServiceEngineerCreate: pageRoutesType = {
  id: 'service_engineer_create',
  type: 'serviceEngineerCreate',
  url: '/service/manage/engineer/create',
  title: '工程师新建',
}

// 工程师详情
export const pageServiceEngineerDetail: pageRoutesType = {
  id: 'service_engineer_detail',
  type: 'serviceEngineerDetail',
  url: '/service/manage/engineer/detail',
  title: '工程师详情',
  idParams: true
}

// 工程师编辑
export const pageServiceEngineerEdit: pageRoutesType = {
  id: 'service_engineer_edit',
  type: 'serviceEngineerEdit',
  url: '/service/manage/engineer/edit',
  title: '编辑工程师',
  idParams: true
}

// 连接器列表页
export const TRIGGER: pageRoutesType = {
  id: 'TRIGGER',
  type: 'connectorList',
  url: '/connector/list',
  title: '触发器',
}

// 连接器编辑页
export const pageConnectorSetting: pageRoutesType = {
  id: 'connector_setting',
  type: 'connectorSetting',
  url: '/connector/setting',
  title: '触发器设置',
  idParams: true,
  titleParamsFnc:(value:string)=>{return `触发器${value}`},
  idParamsFnc:(value:string)=>{return `trigger_${value}`}
}

export const pageTaskSetting:pageRoutesType={
  id:'task_setting',
  type:'taskSetting',
  url:'/setting/task/taskSet',
  title: '工单设置',
}